Qu'est-ce que defaulting to user installation because normal site-packages is not writeable ?

"Defaulting to user installation because normal site-packages is not writable" is a message often encountered in Python when installing packages.

When you run the pip install command in Python to install a package, it tries to install the package in the default system-wide directory called "site-packages." However, sometimes the installation fails due to various reasons, such as insufficient permissions or restricted access to modify files in the system-wide directory.

To prevent installation failures in such cases, Python "defaults to user installation." This means that instead of installing the package in the system-wide directory, Python installs it in a user-specific location where the user has write permissions. This user-specific location, known as the "user site-packages," allows users to modify and install packages without requiring administrative privileges.

The "defaulting to user installation" message serves as a notification to inform users that the installation will occur in the user site-packages directory, which might be different from the default system-wide site-packages. The message ensures that users are aware of the change in installation location.

By defaulting to user installation, Python encourages a more user-centric approach and enables users to easily manage and install packages without requiring administrative access.